{extend name="pub/base2" /}
{block name="title"}
<title>漫画编辑</title>
{/block}

{block name="body"}
<article class="clearfix pd-20">
    <form action="{:url('update')}" method="post" class="form form-horizontal" enctype="multipart/form-data">
        <input type="hidden" value="{$book.id}" name="id">
        <div class="row clearfix">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>漫画名：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="{$book.book_name}" name="book_name">
            </div>
        </div>

        <div class="row clearfix">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>别名：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="{$book.nick_name}" name="nick_name">
            </div>
        </div>

        <div class="row clearfix">
            <label class="form-label col-xs-4 col-sm-3">分类：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="{$book.tags}" placeholder="各个分类用|隔开" name="tags">
            </div>
        </div>

        <div class="row clearfix">
            <label class="form-label col-xs-4 col-sm-3">地区：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <span class="select-box" style="width:150px;">
                    <select class="select" name="area_id" size="1">
                        {volist name="areas" id="vo"}
                        <option value="{$vo.id}" {$book.area_id==$vo.id?"selected":""}>{$vo.area_name}</option>
                        {/volist}
                    </select>
				</span>
            </div>
        </div>

        <div class="row clearfix">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>作者：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="{$book.author.author_name}" name="author">
            </div>
        </div>

        <div class="row clearfix">
            <label class="form-label col-xs-4 col-sm-3">封面：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="file" name="cover" class="input-text">
            </div>
        </div>

        <div class="row clearfix">
            <label class="form-label col-xs-4 col-sm-3">起始付费章节：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" name="start_pay" value="{$book.start_pay}" class="input-text">
            </div>
        </div>

        <div class="row clearfix">
            <label class="form-label col-xs-4 col-sm-3">单章价格：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" name="money" value="{$book.money}" class="input-text">
            </div>
        </div>

        <div class="row clearfix">
            <label class="form-label col-xs-4 col-sm-3">简介：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <textarea name="summary" cols="" rows="" class="textarea"
                          dragonfly="true" onKeyUp="textarealength(this,100)">{$book.summary}</textarea>
                <p class="textarea-numberbar"><em class="textarea-length">0</em>/100</p>
            </div>
        </div>

        <div class="row clearfix">
            <label class="form-label col-xs-4 col-sm-3">状态：</label>
            <div class="formControls col-xs-8 col-sm-9"> <span class="select-box" style="width:150px;">
				<select class="select" name="end" size="1">
					<option value="0" {$book.end?"":"selected"}>连载中</option>
					<option value="1" {$book.end?"selected":""}>已完结</option>
				</select>
				</span>
            </div>
        </div>

        <div class="row clearfix">
            <label class="form-label col-xs-4 col-sm-3">是否推荐：</label>
            <div class="formControls col-xs-8 col-sm-9"> <span class="select-box" style="width:150px;">
				<select class="select" name="is_top" size="1">
					<option value="2" {$book.is_top == 2 ? "" : "selected"}>否</option>
                    <option value="1" {$book.is_top == 1 ? " selected" : ""}>是</option>
				</select>
				</span>
            </div>
        </div>

        <div class="row clearfix">
            <label class="form-label col-xs-4 col-sm-3">开启版权处理：</label>
            <div class="formControls col-xs-8 col-sm-9"> <span class="select-box" style="width:150px;">
				<select class="select" name="is_copyright" size="1">
					<option value="2" {$book.is_copyright == 2 ? "" : "selected"}>否</option>
                    <option value="1" {$book.is_copyright == 1 ? " selected" : ""}>是</option>
				</select>
				</span>
            </div>
        </div>

        <div class="row clearfix">
            <label class="form-label col-xs-4 col-sm-3">正版地址：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" name="src_url" value="{$book.src_url}" class="input-text">
            </div>
        </div>

        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</article>

{/block}